// 封装所有和用户相关的接口函数
import http from '@/utils/http'
import type {LoginData} from "@/types/user";
export const postLoginAPI = (data:LoginData) => {
  return http({
    url: '/login',
    method: 'POST',
    data
  })
}

//猜你喜欢列表
export const getGoodsRelevantAPI = ({ limit = 4 }) => {
  return http({
    url: '/goods/relevant',
    params: {
      limit
    }
  })
}